package action

import (
	"comm/api/commport/service"
	"comm/dto"
	"comm/selfreg"
	"core/action"
	"core/corestruct"
	"reflect"
)

type DetailAction struct {
}

func (p *DetailAction) Do(mm *corestruct.IdModel, ctx *corestruct.HttpContext) (*dto.CommPortDto, error) {
	return service.MainService.Detail(mm, ctx)
}

func init() {

	var mact = &DetailAction{}
	var maction = action.Action{
		Method: "get",

		FullUrl: URLPrev + "/Detail",
		Name:    PAGEName + "详情",
		Ename:   "",
		Memo:    "",

		PinType:    "",
		PinIslist:  false,
		PoutType:   "",
		PoutIslist: false,
		PoutIspage: false,

		AuthType: action.AuthType_Login,

		LogNeed:     false,
		LogPin:      false,
		LogPout:     false,
		LogTemplete: "",

		PrjName: "",

		Value: reflect.ValueOf(mact),
	}
	selfreg.AddAction(&maction)

}
